/**
 * 项目示例-列表表头
 * Date 2023-5-25 09:33:56
 * 可选参数可参考：https://element-plus.org/zh-CN/component/table.html#table-column-属性
 */

import type { TableColumnCtx } from "element-plus";
interface AskListItem {
  askTimeStart?: string[];
  askTimeEnd?: string[];
  askType?: string;
  askContent?: string;
  askTime?: string;
  recorder?: string;
  askRegion?: string;
  recordTime?: string;
  syncTime?: string;
}

export const askColumns = [
  { type: "index", label: "序号", width: 60, align: "center" },
  { prop: "projectType", label: "项目类型", minWidth: 130, align: "center" },
  {
    prop: "projectName",
    label: "项目名称",
    sortable: true,
    minWidth: 130,
    align: "center",
  },
  {
    prop: "applyConstructionTime",
    label: "任务开始时间",
    minWidth: 130,
    align: "center",
  },
  {
    prop: "applyEndTime",
    label: "任务结束时间",
    minWidth: 130,
    align: "center",
  },
  {
    prop: "projectChargePerson",
    label: "责任人",
    minWidth: 130,
    align: "center",
  },
  {
    prop: "collaborativePerson",
    label: "协同人",
    minWidth: 130,
    align: "center",
  },
  { prop: "creator", label: "执行人", minWidth: 130, align: "center" },
  { prop: "createTime", label: "提交时间", minWidth: 130, align: "center" },

  {
    prop: "isSupervision",
    label: "状态",
    sortable: true,
    minWidth: 120,
    align: "center",
    ellipsis: true,
    formatter: function (row: any, column: any, cellValue: any) {
      if (row.isSupervision == "0") {
        return "待检查";
      } else if (row.isSupervision == "1") {
        return "已检查";
      }
    },
  },
  { prop: "action", label: "操作", width: 140, align: "center" },
];
